package com.heima.homeservicemanagementsystem.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;


import com.fasterxml.jackson.annotation.JsonIgnore;
import com.heima.homeservicemanagementsystem.entity.dto.Option;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;


/**
 * 用户表;
 *
 * @author : http://www.chiner.pro
 * @date : 2024-11-24
 */
@Data
/*@ApiModel(value = "用户表",description = "")*/
@TableName("sys_user")
@Schema(name = "用户实体类",title = "用户实体", description = "表示一个用户的信息")
@EqualsAndHashCode(callSuper = false)
public class SysUser extends BaseEntity {
    @Schema(title = "用户名", description = "登录账号")
    private String username;

    @Schema(description = "用户密码")
    private String password;

    @Schema(hidden = true)
    private String slat;

    @Schema(title = "性别", description = "0男1女2未知")
    private Integer sex;

    @Schema(title = "昵称", description = "用户昵称")
    private String nickname;

    @Schema(title = "电话", description = "用户电话")
    private String phone;
    @Schema(title = "邮箱", description = "用户邮箱")
    private String email;

    @Schema(title = "头像", description = "用户头像")
    private String avatar;
    @Schema(title = "gitee信息", description = "gitee信息")
    private String giteeLogin;
    @Schema(title = "github信息", description = "github信息")
    private String githubLogin;
    @Schema(title = "状态", description = "状态")
    private Integer status;


    @TableField(exist = false)
    @Schema(description = "角色列表")
    private List<Option> roles;


}